/*
 * Copyright (C) 2010-2010 MaoJian Wu
 *
 * Author:
 *	MaoJian Wu
 *
 * Source:
 *	
 *
 * This file is a part of zfspear library.
 *
 *
 */

#include "message.h"
#include "xmpp_uri.h"

Message::Message(const QString& from , const QString& to , const QString& body ,
                 const QString& thread) :
        Stanzas("message",XmppUri::CLIENT) {
}




QString Message::GetBody() {
   return this->GetTag("body");
}

void Message::SetBody(const QString& body) {
   this->AddTag("body",body);
}

QString Message::GetSubject() {
   return this->GetTag("subject");
}

void Message::SetSubject(const QString& subject) {
   this->AddTag("subject",subject);
}

QString Message::GetThread() {
   return this->GetTag("thread");
}

void Message::SetThread(const QString& thread) {
  this->AddTag("thread",thread);
}
